package com.jy.rhin.support.parsing;

import com.jy.rhin.application.enums.DocumentTypeEnum;
import com.jy.rhin.facade.dto.DocumentModule;
import com.jy.rhin.facade.dto.TemplateRespDto;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author：hb
 * @Package：com.jy.rhin.support.parsing
 * @Project：rhin-aggr-service
 * @Date：18/04/2024 3:27 pm
 */

@Component
public class FirstPrenatalFollowUpServiceParser extends BaseDocumentParser{
    @Override
    public DocumentTypeEnum getDocumentType() {
        return DocumentTypeEnum.FIRST_PRENATAL_FOLLOW_UP_SERVICE;
    }

    @Override
    public List<TemplateRespDto> documentParsing(Object json, List<TemplateRespDto> templateRespList) {
        return null;
    }

    @Override
    public List<DocumentModule> createBodyModule() {
        List<DocumentModule> list=new ArrayList<>();
        list.add(new DocumentModule("孕产史章节","/component/structuredBody/component/section/code[@code='10162-6']"));
        list.add(new DocumentModule("既往史章节","/component/structuredBody/component/section/code[@code='11348-0']"));
        list.add(new DocumentModule("家族史章节","/component/structuredBody/component/section/code[@code='10157-6']"));
        list.add(new DocumentModule("生命体征章节","/component/structuredBody/component/section/code[@code='8716-3']"));
        list.add(new DocumentModule("心脏章节","/component/structuredBody/component/section/code[@code='10200-4']"));
        list.add(new DocumentModule("呼吸系统章节","/component/structuredBody/component/section/code[@code='11412-4']"));
        list.add(new DocumentModule("生殖器章节","/component/structuredBody/component/section/code[@code='11400-9']"));
        list.add(new DocumentModule("辅助检查章节","/component/structuredBody/component/section/code[@displayName='辅助检查']"));
        list.add(new DocumentModule("健康评估章节","/component/structuredBody/component/section/code[@code='51848-0']"));
        list.add(new DocumentModule("健康指导章节","/component/structuredBody/component/section/code[@code='69730-0']"));
        list.add(new DocumentModule("转诊建议章节","/component/structuredBody/component/section/code[@code='18776-1']"));
        list.add(new DocumentModule("下次随访安排章节","/component/structuredBody/component/section/code[@displayName='下次随访安排']"));
        return list;
    }
}
